<?php
if (!defined('DNREAD')) exit();
global $lang,$setting,$dn;
if (defined('SETTING')) {
    return $bs = '';
}
$bt = '
<form action="/" method="post">
<table width="100%" cellpadding="5" cellspacing="5">
<tbody>
  <tr>
    <td>
      <input name="sea" style="width:96%" maxlength="20" value="" type="text" />
    </td>
  </tr>
  <tr>
    <td>
      <select name="dn" style="width:100%">';
      if (isset($setting['mod']['news']) && $setting['nsearch'] == 'yes') {
        $bt.= '<option value="news"'.((isset($dn) && $dn == 'news') ? ' selected="selected"' : '').'>'.$setting['mod']['news']['name'].'</option>';
      }
      if (isset($setting['mod']['link']) && $setting['lsearch'] == 'yes') {
        $bt.= '<option value="link"'.((isset($dn) && $dn == 'link') ? ' selected="selected"' : '').'>'.$setting['mod']['link']['name'].'</option>';
      }
      if (isset($setting['mod']['down']) && $setting['fsearch'] == 'yes') {
        $bt.= '<option value="down"'.((isset($dn) && $dn == 'down') ? ' selected="selected"' : '').'>'.$setting['mod']['down']['name'].'</option>';
      }
      if (isset($setting['mod']['photos']) && $setting['photossearch'] == 'yes') {
        $bt.= '<option value="photos"'.((isset($dn) && $dn == 'photos') ? ' selected="selected"' : '').'>'.$setting['mod']['photos']['name'].'</option>';
      }
$bt.= '</select>
    </td>
  </tr>
  <tr>
    <td class="pad al">
      <input name="re" value="search" type="hidden" />
      <button value="submit" class="sub"><span><em>'.$lang['search'].'</em></span></button>
    </td>
  </tr>
</tbody>
</table>
</form>';
return $bt;
?>
